<div class="jobProviders index">
<div class="header-banner">
	<h1>
		<?php __('Job Providers');?>
		<?php //echo $this->Html->link(__('Add New', true), array('action' => 'add')); ?>
        
            <div class="add-new-item">
		<?php echo $this->Html->link($this->Html->image('assets/icons/dashboard/95.png', array('alt' => 'Edit')),
										'/admin/'.$this->params['controller']. '/' .'add',  
										array('escape' => false, 'class'=>'tooltip table_icon', 'title' => __('Add New Companies',true)));
		<?php echo $this->Html->link($this->Html->image('assets/icons/dashboard/83.png', array('alt' => 'Edit')),
										'/admin/'.$this->params['controller']. '/export_companies',  
										array('escape' => false, 'class'=>'tooltip table_icon', 'title' => __('Export Companies into Excel',true)));
		?>
		?>
        </div>
	</h1>
	<p><?php __('Add, Edit and Delete Companies.');?></p>
    </div>
	<table class="normal">
	<thead>
	<tr>
			<th><?php __('Name');?></th>
			<th><?php __('Address');?></th>
			<th><?php __('Telephone Number');?></th>
			<th><?php __('Fax Number');?></th>
			<th><?php __('Postal');?></th>
			<th><?php __('Email');?></th>
			<th><?php __('Website');?></th>
			<th><?php __('Contact Person'); ?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	</thead>
	<tbody>
		<?php
			$i = 0;
			foreach ($jobProviders as $jobProvider):
				$class = null;
				if ($i++ % 2 == 0) {
					$class = ' class="altrow"';
				}
			?>
			<tr<?php echo $class;?>>
				<td><?php echo $jobProvider['JobProvider']['name']; ?>&nbsp;</td>
				<td><?php echo $jobProvider['JobLocation']['name']; ?>&nbsp;</td>
				<td><?php echo $jobProvider['JobProvider']['tel']; ?>&nbsp;</td>
				<td><?php echo $jobProvider['JobProvider']['fax']; ?>&nbsp;</td>
				<td><?php echo $jobProvider['JobProvider']['postal']; ?>&nbsp;</td>
				<td><?php echo $jobProvider['JobProvider']['email']; ?>&nbsp;</td>
				<td><?php echo $jobProvider['JobProvider']['web']; ?>&nbsp;</td>
				<td class="actions">
					<?php echo $this->Html->link($this->Html->image('assets/icons/actions_small/Add.png', array('alt' => 'Add')),
									'/admin/contact_people/index/'.$jobProvider['JobProvider']['id']. '/company',  
									array('escape' => false, 'class'=>'tooltip table_icon'));
					?>
				</td>
				<td class="actions">
					<?php echo $this->Html->link($this->Html->image('assets/icons/actions_small/Pencil.png', array('alt' => 'Edit')),
										'/admin/'.$this->params['controller']. '/' .'add'.'/'.$jobProvider['JobProvider']['id'].'/'. 1,  
										array('escape' => false, 'class'=>'tooltip table_icon'));
					?>
					<?php echo $this->Html->link($this->Html->image('assets/icons/actions_small/Trash.png', array('alt' => 'Delete')),
													'/admin/'.$this->params['controller']. '/' .'delete'.'/'.$jobProvider['JobProvider']['id'],  
													array('rel' => 'delete', 'escape' => false, 'class'=>'tooltip table_icon'));
					?>
				</td>
			</tr>
		<?php endforeach; ?>
	</tbody>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>